@extends('layouts.tankuang')

@section('content')
        <form name="add_form" id="add_form" action="{{url('admin/rysh/addrush')}}" method="post" enctype="multipart/form-data">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            <div id="div_print">
                <h2 class="text-center mg_b36 mg_t25" style="font-weight:bold;">人员核查</h2>

                <table class="table-form table-border w mg-auto">
                    <tbody>
                    <tr>
                        <td class="font-bd">上报标题</td>
                        <td colspan="5"><input type="text" class="form-input w" value="" name="jqbt"></td>
                    </tr>

                    <tr>
                        <td class="font-bd">上报时间</td>
                        <td>
                             <input type="text" name="sbsj"  class="easyui-datetimebox" style="width:342px;" disabled/>

                        </td>
                        <td class="font-bd">县市区、派出所</td>
                        <td colspan="3">
                            <input type="text" class="form-input w" value="{{getValue($units->city,'area','id','name')}}{{getValue($units->area,'area','id','name')}}{{getValue($units->org_id,'area','id','name')}}" readonly>
                        </td>
                    </tr>

                        <tr>
                        <td class="font-bd">上报单位</td>
                        <td colspan="5"><input type="text" class="form-input w" value="{{$units->name}}" readonly></td>
                    </tr>


                     <tr>
                        <td class="font-bd">上报人</td>
                        <td>
                             <input type="text" class="form-input w" value="" name="sbren" >
                        </td>
                        <td class="font-bd">联系电话</td>
                        <td colspan="3">
                            <input type="text" class="form-input w" value="" name="lxfs" >
                        </td>
                    </tr>

                     <tr>
                        <td class="font-bd">警情类型</td>
                        <td colspan="5">

                        <input type="radio" name="jqlx" value="1"  checked />发生不安定事端 /
                        <input type="radio" name="jqlx" value="2"  />刑事案件 /
                        <input type="radio" name="jqlx" value="3"  />抓获违法犯罪嫌疑人 /
                        <input type="radio" name="jqlx" value="4"  />上报情报信息 /
                        <input type="radio" name="jqlx" value="5"  />火灾事故数 /
                        <input type="radio" name="jqlx" value="6"  />其它灾害事故数

                        </td>
                    </tr>



                     <tr>
                        <td class="font-bd">警情内容</td>
                        <td colspan="5"><textarea class="textarea" name="cont" class="form-input w"></textarea></td>
                    </tr>




             

                    </tbody>
                </table>

            
                <div class="w wbt mg_t25 pd_b20 text-center">
                    <button id="go" type="button" class="easyui-linkbutton dsp" data-options="iconCls:'icon-save'">确定</button>
                </div>
            </div>
        </form>

     

        <script>
            $('#go').click(function (){
                $.ajax({
                    cache: true,
                    type: "POST",
                    url: "{{url('admin/rysh/addrush')}}",
                    data: $('#add_form').serialize(),
                    async: false,
                    success: function(data) {
                        if(data.status == 1){
                            $.messager.alert('信息提示',data.msg,'info');
                            $('#adbg').dialog('close');
                            $('.pagination-load').click();
                        }else {
                            $.messager.alert('信息提示',data.msg,'info');
                        }
                    },
                    error: function(msg) {
                        var json=JSON.parse(msg.responseText);
                        $.each(json, function(index, value) {
                            $.messager.alert('信息提示',value,'info');die;
                        });
                    },
                });
            });
        </script>

    


@stop